Skip to content

[Test] Prevent false positive failures in test test_update_race_condition. #7302

Merged
gmarciani merged 2 commits intoaws:developfrom
gmarciani:wip/mgiacomo/3150/test-update-race-conditions-0318-1
Mar 20, 2026
Merged

[Test] Prevent false positive failures in test test_update_race_condition. #7302
gmarciani merged 2 commits intoaws:developfrom
gmarciani:wip/mgiacomo/3150/test-update-race-conditions-0318-1

Conversation

@gmarciani
Copy link
Contributor

@gmarciani gmarciani commented Mar 18, 2026

Description of changes

Prevent false positive failures in test test_update_race_condition. In particular:

  1. do not fail when the cluster update fails only because of the known race condition on login node.
  2. when cluster fails the update, determine the cluster snapshot used by the assertions only after the head node completed the update recipe, so that the snapshot contains reliable data.

Tests

SUCCEEDED test_update_race_conditions on all OSs except for AL2 where there is a known issue about a logging file we need to fix in the product

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@gmarciani gmarciani added 3.x skip-changelog-update Disables the check that enforces changelog updates in PRs Test labels Mar 18, 2026
@gmarciani gmarciani force-pushed the wip/mgiacomo/3150/test-update-race-conditions-0318-1 branch 4 times, most recently from 1261020 to f4425ad Compare March 19, 2026 17:55
@gmarciani gmarciani force-pushed the wip/mgiacomo/3150/test-update-race-conditions-0318-1 branch 5 times, most recently from 85bf9da to 9dc3893 Compare March 19, 2026 22:17
@gmarciani gmarciani marked this pull request as ready for review March 19, 2026 22:17
@gmarciani gmarciani requested review from a team as code owners March 19, 2026 22:17
@gmarciani gmarciani force-pushed the wip/mgiacomo/3150/test-update-race-conditions-0318-1 branch from 9dc3893 to 6a40bbf Compare March 20, 2026 02:09
@gmarciani gmarciani changed the title [Test] Improve logic in auxiliary function match_regex_in_log so that the test test_update_race_condition is able to detect expected log lines and prevent false positive failures. [Test] Prevent false positive failures in test test_update_race_condition. Mar 20, 2026
@gmarciani gmarciani force-pushed the wip/mgiacomo/3150/test-update-race-conditions-0318-1 branch 3 times, most recently from c5cc4b2 to b3bd90b Compare March 20, 2026 22:36
…ition`.

In particular:
  1. do not fail when the cluster update fails only because of the known race condition on login node.
  2. when cluster fails the update, determine the cluster snapshot used by the assertions only after the head node completed the update recipe, so that the snapshot contains reliable data.
@gmarciani gmarciani force-pushed the wip/mgiacomo/3150/test-update-race-conditions-0318-1 branch from b3bd90b to 563fca6 Compare March 20, 2026 22:49
@gmarciani gmarciani enabled auto-merge (rebase) March 20, 2026 22:50
@gmarciani gmarciani merged commit 0a83ff2 into aws:develop Mar 20, 2026
24 checks passed
@gmarciani gmarciani deleted the wip/mgiacomo/3150/test-update-race-conditions-0318-1 branch March 20, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x skip-changelog-update Disables the check that enforces changelog updates in PRs Test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants